<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui" xml:lang="en" lang="en">
<head>
    <title>My Facelets Page</title>
    <meta http-equiv="keywords" content="enter,your,keywords,here"/>
    <meta http-equiv="description"
          content="A short description of this page."/>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>

    <!--<link rel="stylesheet" type="text/css" href="styles.css">-->
</head>
<body>
<ui:composition template="BackGeneral.xhtml">
    <ui:define name="content">
        <h:form>
            <div>
                <h:outputText id="outputText1" styleClass="tit"
                              value="－#{aAAdmin.lab}－"/>
                <p:separator/>
                <h:panelGrid columns="2">
                    <h:outputText value="用户名："/>
                    <h:inputText value="#{aAAdmin.admin.urn}" style="width:400px"/>

                    <h:outputText value="密码："/>
                    <h:inputText value="#{aAAdmin.admin.pwd}" style="width:400px"/>

                    <h:outputText value="称呼："/>
                    <h:inputText value="#{aAAdmin.admin.nickname}" style="width:400px"/>

                    <h:outputText value="激活：" rendered="#{adminSessionBean.ifSuper}"/>
                    <h:selectBooleanCheckbox id="checkbox1"
                                             rendered="#{adminSessionBean.ifSuper}"
                                             value="#{aAAdmin.admin.enabled}"/>

                    <h:outputText value="用户组：" rendered="#{adminSessionBean.ifSuper}"/>
                    <h:selectOneMenu value="#{aAAdmin.admin.grp}"
                                     rendered="#{adminSessionBean.ifSuper}">
                        <f:selectItems value="#{aAAdmin.dropdown1DefaultItems}"/>
                    </h:selectOneMenu>


                </h:panelGrid>
                <p:separator/>
                <p:commandButton action="#{aAAdmin.submit_action}" value="提交" ajax="false"/>
                <p:outputPanel autoUpdate="true">
                    <h:messages styleClass="msg"></h:messages>
                </p:outputPanel>

            </div>
        </h:form>
    </ui:define>
</ui:composition>
</body>
</html>
